package edu.its.dreamteam.daf.beans;

import java.io.Serializable;
import java.util.Date;

public class DraftPlayer extends BaseBean implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String idDraft;
	private String idTeam;
	private String idPlayer;
	private Date dateDraft;
	private Integer bid;
	private String statusDraft;
	private Integer maxPlayed;
	private Integer currentPlayed;
	private String play;
	private String sell;
	
	private Team team;
	private Player player;
	
	public String getIdDraft() {
		return idDraft;
	}

	public void setIdDraft(String idDraft) {
		this.idDraft = idDraft;
	}

	public String getIdTeam() {
		idTeam = getTeam().getIdTeam();
		return idTeam;
	}

	public void setIdTeam(String idTeam) {
		this.idTeam = idTeam;
		getTeam().setIdTeam(idTeam);
	}

	public String getIdPlayer() {
		idPlayer = getPlayer().getIdPlayer();
		return idPlayer;
	}

	public void setIdPlayer(String idPlayer) {
		this.idPlayer = idPlayer;
		getPlayer().setIdPlayer(idPlayer);
	}

	public Date getDateDraft() {
		return dateDraft;
	}

	public void setDateDraft(Date dateDraft) {
		this.dateDraft = dateDraft;
	}

	public Integer getBid() {
		return bid;
	}

	public void setBid(Integer bid) {
		this.bid = bid;
	}

	public String getStatusDraft() {
		return statusDraft;
	}

	public void setStatusDraft(String statusDraft) {
		this.statusDraft = statusDraft;
	}
	
	public Integer getMaxPlayed() {
		return maxPlayed;
	}

	public void setMaxPlayed(Integer maxPlayed) {
		this.maxPlayed = maxPlayed;
	}

	

	public Integer getCurrentPlayed() {
		return currentPlayed;
	}

	public void setCurrentPlayed(Integer currentPlayed) {
		this.currentPlayed = currentPlayed;
	}
	
	
	public String getSell() {
		return sell;
	}

	public void setSell(String sell) {
		this.sell = sell;
	}

	public String getPlay() {
		return play;
	}

	public void setPlay(String play) {
		this.play = play;
	}

	public Team getTeam() {
		if(team == null){
			team = new Team();
		}
		return team;
	}

	public void setTeam(Team team) {
		this.team = team;
	}

	public Player getPlayer() {
		if(player == null){
			player = new Player();
		}
		return player;
	}

	public void setPlayer(Player player) {
		this.player = player;
	}

	@Override
	protected String getPrimaryKey() {
		return getIdDraft();
	}

}
